﻿using System;
using System.Data.Entity;
using DistributeTransaction.DAL;
using DistributeTransaction.Models;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting.Web;

namespace DistributeTransaction.Tests
{
    
    
    /// <summary>
    ///This is a test class for DatabaseContextTest and is intended
    ///to contain all DatabaseContextTest Unit Tests
    ///</summary>
    [TestClass()]
    public class DatabaseContextTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for DatabaseContext Constructor
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [UrlToTest("http://localhost:12483")]
        public void DatabaseContextConstructorTest()
        {
            DatabaseContext target = new DatabaseContext();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }

        /// <summary>
        ///A test for OnModelCreating
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [UrlToTest("http://localhost:12483")]
        [DeploymentItem("DistributeTransaction.dll")]
        public void OnModelCreatingTest()
        {
            DatabaseContext_Accessor target = new DatabaseContext_Accessor(); // TODO: Initialize to an appropriate value
            DbModelBuilder modelBuilder = null; // TODO: Initialize to an appropriate value
            target.OnModelCreating(modelBuilder);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for CardInfos
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [UrlToTest("http://localhost:12483")]
        public void CardInfosTest()
        {
            DatabaseContext target = new DatabaseContext(); // TODO: Initialize to an appropriate value
            DbSet<CardInfo> expected = null; // TODO: Initialize to an appropriate value
            DbSet<CardInfo> actual;
            target.CardInfos = expected;
            actual = target.CardInfos;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Categorys
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [UrlToTest("http://localhost:12483")]
        public void CategorysTest()
        {
            DatabaseContext target = new DatabaseContext(); // TODO: Initialize to an appropriate value
            DbSet<Category> expected = null; // TODO: Initialize to an appropriate value
            DbSet<Category> actual;
            target.Categorys = expected;
            actual = target.Categorys;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Customers
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [UrlToTest("http://localhost:12483")]
        public void CustomersTest()
        {
            DatabaseContext target = new DatabaseContext(); // TODO: Initialize to an appropriate value
            DbSet<Customer> expected = null; // TODO: Initialize to an appropriate value
            DbSet<Customer> actual;
            target.Customers = expected;
            actual = target.Customers;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for OrderDetail
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [UrlToTest("http://localhost:12483")]
        public void OrderDetailTest()
        {
            DatabaseContext target = new DatabaseContext(); // TODO: Initialize to an appropriate value
            DbSet<OrderDetail> expected = null; // TODO: Initialize to an appropriate value
            DbSet<OrderDetail> actual;
            target.OrderDetail = expected;
            actual = target.OrderDetail;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Orders
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [UrlToTest("http://localhost:12483")]
        public void OrdersTest()
        {
            DatabaseContext target = new DatabaseContext(); // TODO: Initialize to an appropriate value
            DbSet<Order> expected = null; // TODO: Initialize to an appropriate value
            DbSet<Order> actual;
            target.Orders = expected;
            actual = target.Orders;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Payments
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [UrlToTest("http://localhost:12483")]
        public void PaymentsTest()
        {
            DatabaseContext target = new DatabaseContext(); // TODO: Initialize to an appropriate value
            DbSet<Payment> expected = null; // TODO: Initialize to an appropriate value
            DbSet<Payment> actual;
            target.Payments = expected;
            actual = target.Payments;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for Products
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [UrlToTest("http://localhost:12483")]
        public void ProductsTest()
        {
            DatabaseContext target = new DatabaseContext(); // TODO: Initialize to an appropriate value
            DbSet<Product> expected = null; // TODO: Initialize to an appropriate value
            DbSet<Product> actual;
            target.Products = expected;
            actual = target.Products;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for ShoppingCarts
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [UrlToTest("http://localhost:12483")]
        public void ShoppingCartsTest()
        {
            DatabaseContext target = new DatabaseContext(); // TODO: Initialize to an appropriate value
            DbSet<ShoppingCart> expected = null; // TODO: Initialize to an appropriate value
            DbSet<ShoppingCart> actual;
            target.ShoppingCarts = expected;
            actual = target.ShoppingCarts;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for WatchLists
        ///</summary>
        // TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
        // http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
        // whether you are testing a page, web service, or a WCF service.
        [TestMethod()]
        [HostType("ASP.NET")]
        [UrlToTest("http://localhost:12483")]
        public void WatchListsTest()
        {
            DatabaseContext target = new DatabaseContext(); // TODO: Initialize to an appropriate value
            DbSet<WatchList> expected = null; // TODO: Initialize to an appropriate value
            DbSet<WatchList> actual;
            target.WatchLists = expected;
            actual = target.WatchLists;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
    }
}
